//====================================================================
// Filename:      goblin_sqs_queue_disk_sync_thread.cc
//                
// It belongs to goblin-os.
//                
// Version:       
// Author:        Ins <InsFous@gmail.com>
// Created at:    Fri Dec 10 17:51:37 2010
// Description:   
//                
//====================================================================
#include "goblin_sqs_queue_disk_sync_thread.h"

namespace goblin {
  namespace sqs {

    void *queue_disk_sync_thread(void *arg) {
      QueueCenter *queue_center = reinterpret_cast<QueueCenter *>(arg);
      while (true) {
	printf("Disk Sync Thread Started\n");
	sleep(10);
	queue_center->SyncToDisk();
	printf("After Disk Sync\n");
      }
    }

  }
}
